import instance from "../utils/requests"
import path from "./base"

const api = {
    // 网络请求
    getUsers(){
        return instance.get(path.baseUrl + path.users)
    },
    login(user, pwd){
        return instance.post(path.baseUrl + path.login, {"username": user, "password": pwd})
    }
}

export default api